﻿using DirectService.Server.Com.ROS;
using DirectService.Server.Com.taobao.Models;
using LJLib.Net.SPI.Com;
using System.Collections.Generic;

namespace DirectService.Server.Com.taobao
{
    /// <summary>
    /// 上传发货单
    /// </summary>
    public sealed class UploadLocalOutwaresRequest : ITokenRequest<UploadLocalOutwaresResponse>
    {
        /// <summary>
        /// 门店会话ID
        /// </summary>
        public string token { get; set; }
        /// <summary>
        /// 发货单列表
        /// 发货单关键信息:
        /// outwarecode
        /// taskcode
        /// carcode
        /// transcode
        /// dscrp
        /// skus: 发货明细,如果skus为空,taskcode不为空,则代表整张订单发货
        /// 发货明细关键信息:
        /// mtrlcode
        /// status
        /// woodcode
        /// pcode
        /// qty
        /// price
        /// </summary>
        public List<Outware> outwares { get; set; }

        public string GetApiName()
        {
            return "UploadLocalOutwares";
        }
    }

    /// <summary>
    /// 没有异常则表示上传成功,为了避免重复上传,应该区分已上传的
    /// </summary>
    public sealed class UploadLocalOutwaresResponse : LJResponse
    {
        public List<Outware> outwares { get; set; }
    }
}
